package Day05;

public class Test02 {
    public static void main(String[] args) {
       /* int a= 3;
        a+=3;
        System.out.println(a);
        int b=5;
        b-=6;
        System.out.println(b);*/
        /*int n1=10;
        n1 += 4;// n1 = n1 + 4;
        System.out.println(n1); // 14
        n1 /= 3;// n1 = n1 / 3;//4
        System.out.println(n1); // 4
//复合赋值运算符会进行类型转换
        byte b = 3;
        b += 2; // 等价 b = (byte)(b + 2);
        b++; // b = (byte)(b+1);*/
       /* int a2=8;
        a2/=2;
        System.out.println(a2);
        int a3=6;
        a3*=6;
        System.out.println(a3);
        int a4=10;
        a4%=3;
        System.out.println(a4);*/
        //案例：实现三个数的最大值
        int n1 = 553;
        int n2 = 33;
        int n3 = 123;
        int maxa= n1>n2?n1:n2;
        int max = maxa>n3?maxa:n3;
        System.out.println("最大数="+max);
        if (n1>n2){
            if (n1>n3){
                System.out.println(n1);
            }else
                System.out.println(n3);
        }else
            System.out.println(n2);
    }
}
